@/*
头像参数的说明:
name : 名称
id : 头像的id
@*/
<div class="form-group">
    <label class="col-sm-3 control-label head-scu-label">${name}</label>
    <div class="col-sm-3">
        <div id="${id}PreId">
            <div><img style="max-height: 100px"
                      @if(isEmpty(img)){
                            src="${ctxPath}/static/img/default.png"></div>
                      @}else{
                            src="${ctxPath}/file/${img}"></div>
                       @}
        </div>
    </div>
    @if(isEmpty(readonly)){
        <div class="col-sm-2">
            <div class="head-scu-btn upload-btn" id="${id}BtnId">
                <i class="fa fa-upload"></i>&nbsp;上传
            </div>
        </div>
    @}
    @if(isNotEmpty(hasProgress)){
         <!--进度条，样式不好，先去掉-->
        <!--<div class="progress progress-striped col-sm-12 offset2" id="progressTipArea" style="margin-top: 20px;">-->
        <!--<div id="progressBar" style="width: 0%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" role="progressbar" class="progress-bar progress-bar-info">-->
        <!--</div>-->
    @}
    <input type="hidden" id="${id}" value="${img!}"/>
</div>

@if(isNotEmpty(underline) && underline == 'true'){
<div class="hr-line-dashed"></div>
@}

@if(isEmpty(readonly)){
    <script>
        // 初始化封面图片上传
        var coverImgUp = new $WebUpload("${id}");
        @if(isNotEmpty(hasProgress)){
            coverImgUp.setUploadBarId("progressBar");
        @}
        coverImgUp.init();
    </script>
@}